#include <iostream>
#include<string>
#include<cstring>
using namespace std;
 
int main()
{
    char str[10000];
    cin.getline(str,10000);
    int len = strlen(str);
    for(int i = 0 ; i < len ; i++)
    {
        if(str[i] >= 'a' && str[i] <= 'z')
        {
            if(str[i] != 'x' && str[i] != 'y' && str[i] != 'z')
            {
                char temp = str[i];
                temp = temp - 32 + 3;
                cout<<temp;
            }
            else
            {
                if(str[i] == 'x')
                {
                    cout<<"A";
                }
                if(str[i] == 'y')
                {
                    cout<<"B";
                }
                if(str[i] == 'z')
                {
                    cout<<"C";
                }
            }
        }
        else
        {
            if(str[i] != 'X' && str[i] != 'Y' && str[i] != 'Z')
            {
                char temp = str[i];
                temp = temp + 32 + 3;
                cout<<temp;
            }
            else
            {
                if(str[i] == 'X')
                {
                    cout<<"a";
                }
                if(str[i] == 'Y')
                {
                    cout<<"b";
                }
                if(str[i] == 'Z')
                {
                    cout<<"c";
                }
            }
        }
    }
    return 0;
}
